//
//  CityDJCell.m
//  HB
//
//  Created by 孙智慧 on 16/1/19.
//  Copyright © 2016年 孙智慧. All rights reserved.
//

#import "CityDJCell.h"

@implementation CityDJCell

- (void)awakeFromNib
{
    
    self.img1.tag=1;
    self.img2.tag=2;
    self.img3.tag=3;
    
 
        self.img1.userInteractionEnabled = YES;
        UITapGestureRecognizer *singleTap1 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(buttonpress1:)];
        [self.img1 addGestureRecognizer:singleTap1];
  
    
 
        self.img2.userInteractionEnabled = YES;
        UITapGestureRecognizer *singleTap2 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(buttonpress1:)];
        [self.img2 addGestureRecognizer:singleTap2];
    
    
 
        self.img3.userInteractionEnabled = YES;
        UITapGestureRecognizer *singleTap3 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(buttonpress1:)];
        [self.img3 addGestureRecognizer:singleTap3];
  
    
}

-(void)buttonpress1:(UITapGestureRecognizer *)imgView
{
    if((imgView.view.tag==1 && _isBanding1) || (imgView.view.tag==2 && _isBanding2) || (imgView.view.tag==3 && _isBanding3))
    {
        [_delegate choseTerm:imgView andId:self];
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
